application on gamma function